package com.sso.oauth2.server.enums;

/**
 * 响应结果枚举
 *
 * @author yins
 * @date 2021/05/12 09:41
 **/
public enum ResultEnum {

    OK(200, "请求成功"),

    PARAM(300, "接口请求失败，参数错误"),

    FAIL(400, "接口请求失败，请稍后重试"),

    ERROR(500, "服务器未知异常，请连续管理员");

    public final Integer code;

    public final String msg;


    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
